package org.icnmasjid.member.model;
// Generated Dec 6, 2008 9:23:45 PM by Hibernate Tools 3.1.0.beta4

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="icnpayment"
 *
 */

public class IcnPayment extends org.icnmasjid.member.model.BaseObject implements java.io.Serializable {


    // Fields

	private Integer id;
    private String last;
    private String first;
    private String spouse;
    private String address;
    private String email;
    private double amount;


    // Constructors

    /** default constructor */
    public IcnPayment() {
    }


    /** full constructor */
    public IcnPayment(String last, String first, String spouse, String address, String email, double amount) {
        this.last = last;
        this.first = first;
        this.spouse = spouse;
        this.address = address;
        this.email = email;
        this.amount = amount;
    }

    // Property accessors
    /**
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="id"
     *
     */

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    // Property accessors
    /**
     *      *                @hibernate.property
     *                 column="last"
     *
     */

    public String getLast() {
        return this.last;
    }

    public void setLast(String last) {
        this.last = last;
    }
    /**
     *      *                @hibernate.property
     *                 column="first"
     *
     */

    public String getFirst() {
        return this.first;
    }

    public void setFirst(String first) {
        this.first = first;
    }
    /**
     *      *                @hibernate.property
     *                 column="spouse"
     *
     */

    public String getSpouse() {
        return this.spouse;
    }

    public void setSpouse(String spouse) {
        this.spouse = spouse;
    }
    /**
     *      *                @hibernate.property
     *                 column="address"
     *
     */

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    /**
     *      *                @hibernate.property
     *                 column="email"
     *
     */

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    /**
     *      *                @hibernate.property
     *                 column="amount"
     *
     */

    public double getAmount() {
        return this.amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }


	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-863814567, -60962639).append(this.amount)
				.append(this.last).append(this.spouse).append(this.address)
				.append(this.first).append(this.email).append(this.id)
				.toHashCode();
	}


	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("amount", this.amount).append("first", this.first)
				.append("id", this.id).append("email", this.email).append(
						"last", this.last).append("address", this.address)
				.append("spouse", this.spouse).toString();
	}


	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof IcnPayment)) {
			return false;
		}
		IcnPayment rhs = (IcnPayment) object;
		return new EqualsBuilder().append(this.amount, rhs.amount).append(
				this.last, rhs.last).append(this.spouse, rhs.spouse).append(
				this.address, rhs.address).append(this.first, rhs.first)
				.append(this.email, rhs.email).append(this.id, rhs.id)
				.isEquals();
	}









}
